// Global namespace
var MasterStroke = MasterStroke || {};
MasterStroke.ViewModels = MasterStroke.ViewModels || {};

define
(
    ["lib/knockout"],
    function(ko)
    {
        MasterStroke.ViewModels.NewTaskViewModel = function()
        {
            this.name = ko.observable("");
            this.description = ko.observable("");

            this.isValid = function()
            {
                return (this.name) && (this.name.length);
            }
        };

        return MasterStroke.ViewModels.NewTaskViewModel;
    }
);